package com.company;

import com.company.Transport.Bicycle;

public class Main {

    public static void main(String[] args) {
        // write your code here
        Person person=new Person();//实例化一个人
        person.setId("201902180");
        person.setP_Name("李君浩");
        person.setP_Age(20);
        person.setP_Sex("男");
        //初始化信息
        Bicycle bicycle=new Bicycle();//初始化一个自行车
        bicycle.setTransport_name("捷安特牌自行车");
        bicycle.setOwnership("李君浩");
        bicycle.setGpsPosition("北");
        bicycle.setPrice("3000块");
        System.out.println("Id:"+person.getId()+"  姓名："+person.getP_Name());
        System.out.println("年龄："+person.getP_Age()+"  性别："+person.getP_Sex());

        person.driveTransport(bicycle);//人驾驶自行车
    }
}
